package com.itheima.Day5;

public class Dome1 {
    public static void main(String[] args) {
        String s = "91-27-46-38-50";
        String[] strarr = s.split( "-");
        int[] numbearr =new  int[strarr.length];
        for (int i = 0; i < strarr.length; i++) {
            int numbr = Integer.parseInt(strarr[i]);
            numbearr[i]= numbr;
        }
        for (int i = 0; i < numbearr.length; i++) {
            System.out.print(numbearr[i]+" ");
        }
    }
}
